<?php
//随缘Api
//随机美女demo
//用户中心地址:http://www.sybapi.cc
//KEY在个人信息里获取
include("../includes/config.php");//全局文件
if (file_exists('../count/girls_number.json')) {
    $number = json_decode(file_get_contents('../count/girls_number.json'), true)['number'];
} else {
    $number = 0;
} 
$now = $number + 1;
$url = 'http://www.sybapi.cc/api/girls?key='.$key.'&type=image';//二次跳转地址
header("location:$url") ;
file_put_contents('../count/girls_number.json', json_encode(['number' => $now]));
?>